-- GENERATED SPELL FOR [Stromgarde Troll Hunter] --


function spell0_2583(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(17137,pUnit)
pUnit:RegisterEvent('Sorts_2583', 1500, 1)
end

function spell1_2583(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(2767,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2583', 18000, 1)
end

function Sorts_2583(pUnit, Event)
local choix_sorts_2583 = math.random(0, 1)
if choix_sorts_2583 == 0 then
pUnit:RegisterEvent('spell0_2583', 1, 1)
end
if choix_sorts_2583 == 1 then
pUnit:RegisterEvent('spell1_2583', 1, 1)
end
end

function mob2583_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2583', math.random(1500, 3000), 1)
end

function mob2583_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2583_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2583_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2583, 1, 'mob2583_Action')
RegisterUnitEvent(2583, 2, 'mob2583_Leave')
RegisterUnitEvent(2583, 3, 'mob2583_Kill')
RegisterUnitEvent(2583, 4, 'mob2583_Die')
